<?php
/*
Plugin Name:菜单插件
Plugin URI:https://blog.csdn.net/lujianfeiccie2009
Version:V1.01
Author: 路飞
Author URI:https://blog.csdn.net/lujianfeiccie2009
Description:这是我开发的第一个WP插件哦
*/
//注册一个菜单	
add_action( 'init', 'register_my_menu' ); 
function register_my_menu() {
     register_nav_menu( 'primary-menu', __( 'Primary Menu' ) ); 
}
?>